import {
	createStore
} from 'vuex';
//创建store 暴露出去
const store = createStore({
	//准备一个state-储存数据
	state: {
		shopNum: 0
	},
	getters: {},
	//准备一个actions-响应组件中的动作
	actions: {},
	//准备一个mutations-操作数据
	mutations: {
		setShopNum(state, value) {
			state.shopNum = value*1
		}
	},
})
export default store